{% extends "admin/master.volt" %}
{% block content %}
    <header class="bar bar-nav">
        <h1 class='title'>新增学生</h1>
    </header>
    <div class="content">
        <div class="list-block">
            <ul>
                <!-- Text inputs -->
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">姓名</div>
                            <div class="item-input">
                                <input type="text" placeholder="姓名" id="name">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-email"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">性别</div>
                            <div class="item-input">
                                <select name="" id="sex">
                                    <option value="男">男</option>
                                    <option value="女">女</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">头像</div>
                            <div class="item-input">
                                <input type="file" id="upload">
                                <input type="hidden" id="avatar">
                                <input type="hidden" id="postUrl" value="{{ url('/admin/index/upload') }}">
                            </div>
                        </div>
                    </div>
                </li>
                <img id="pic" src="" alt="" style="width:100%;">
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">身份证</div>
                            <div class="item-input">
                                <input type="text" placeholder="身份证" id="cert">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">民族</div>
                            <div class="item-input">
                                <input type="text" placeholder="民族" id="nation" value="汉">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">生日</div>
                            <div class="item-input">
                                <input type="text" class="date" id="birthday">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">院校</div>
                            <div class="item-input">
                                <input type="text" placeholder="院校" id="school">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">学历层次</div>
                            <div class="item-input">
                                <input type="text" placeholder="学历层次" id="edu">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">院系</div>
                            <div class="item-input">
                                <input type="text" placeholder="院系" id="depart">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">班级</div>
                            <div class="item-input">
                                <input type="text" placeholder="班级" id="class">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">专业</div>
                            <div class="item-input">
                                <input type="text" placeholder="专业" id="pro">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">学号</div>
                            <div class="item-input">
                                <input type="text" placeholder="学号" id="card">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">形式</div>
                            <div class="item-input">
                                <input type="text" placeholder="形式" id="edu_type" value="普通全日制">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">入学时间</div>
                            <div class="item-input">
                                <input type="text" class="date" placeholder="入学时间" id="school_time">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">学制 （几年）</div>
                            <div class="item-input">
                                <input type="number" placeholder="学制" id="school_year">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">类型</div>
                            <div class="item-input">
                                <input type="text" placeholder="类型" id="type">
                            </div>
                        </div>
                    </div>
                </li>
                <li>
                    <div class="item-content">
                        <div class="item-media"><i class="icon icon-form-name"></i></div>
                        <div class="item-inner">
                            <div class="item-title label">学籍状态</div>
                            <div class="item-input">
                                <input type="text" placeholder="学籍状态" id="status">
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
        <div class="content-block">
            <a onclick="sub(this)" data-url="{{ url('/admin/index/pfnAdd') }}" data-target="{{ url('admin/index') }}"
               class="button button-big button-fill button-success">登录</a>
        </div>
    </div>
{% endblock %}
{% block js %}
    <script src="{{ static_url('/app/js/admin/index.js') }}"></script>
{% endblock %}